package com.jsp.service;


import java.sql.SQLException;

import com.jsp.bean.AdminBean;
import com.jsp.dao.AdminDao;


public class AdminService {
	private AdminBean admin;

	private AdminDao adminDao;
	public AdminBean adminlogin(String adminName,String adminPassword) throws SQLException {
	
		 admin =new AdminBean(adminName, adminPassword);
		
		adminDao=new AdminDao();
		return adminDao.adminlogin(admin);
	
		
		
		
		}

}
